using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class LoginForm : UGuiFrom
{
    [SerializeField]
    private Button mOnLogin;
    public event System.Action<bool,string> LoginResultEvt;

    protected override void OnInit(object userData)
    {
        base.OnInit(userData); 
       
        mOnLogin.onClick.AddListener(()=>
        {
            LoginResultEvt?.Invoke(true,null);
        });
    }
    protected override void OnOpen(object userData)
    {
        base.OnOpen(userData);
    }
}